﻿namespace Admin.NET.Application.Service;
public class TraShenQingPeiFaXuePageInput: BaseKeywordPageInput
{
    public string danHao { get; set; }
    public List<int> riQiGuoLv {  get; set; }
    public List<string> peiXueZhuangTai { get; set; }
}
public class PeiFaXueInfoOutput
{
    /// <summary>
    /// 复核信息
    /// </summary>
    public TraFuHeOutput fuHe { get; set; }
    /// <summary>
    /// 配血列表
    /// </summary>
    public List<TraPeiXueOutput> peiXueList { get; set; }
    /// <summary>
    /// 发血列表
    /// </summary>
    public List<TraFaXueOutput> faXueList { get; set; }
}
public class CheckHuanZheLiShiCiShuInput 
{
    public string huanZheId { get; set; }
    public string zhuYuanHao { get; set; }
}

public class CheckHuanZheLiShiCiShuOutput
{
    public int liShiShuXueCiShu { get; set; }
    public int liShiFuHeCiShu { get; set; }
    public int liShiPeiXueCiShu { get; set; }
    public int liShiShuXueFanYingCiShu { get; set; }
}
  
public class CheckHuanZheLatestInfoOutput
{
    /// <summary>
    /// "输血史"
    /// </summary>
    public string shuXueShi { get; set; }

    /// <summary>
    /// "输血反应史"
    /// </summary>
    public string shuXueFanYingShi { get; set; }

    /// <summary>
    /// "孕产史"
    /// </summary>
    public string yunChanShi { get; set; }

    /// <summary>
    /// "移植史 "
    /// </summary>
    public string yiZhiShi { get; set; }
    /// <summary>
    /// 复核ABO
    /// </summary>
    public string fuHeABO { get; set; }

    /// <summary>
    /// "复核RhD"
    /// </summary>
    public string fuHeRhD { get; set; }
    /// <summary>
    /// 抗筛结果
    /// </summary>
    public string kangShaiJieGuo { get; set; }

}
public class CheckLiShiPageInput
{
    public string huanZheId { get; set; }
    public string zhuYuanHao { get; set; }

    /// <summary>
    /// 当前页码
    /// </summary>
    [DataValidation(ValidationTypes.Numeric)]
    public int page { get; set; } = 1;

    /// <summary>
    /// 页码容量
    /// </summary>
    //[Range(0, 100, ErrorMessage = "页码容量超过最大限制")]
    [DataValidation(ValidationTypes.Numeric)]
    public int pageSize { get; set; } = 10;
}

public class HuanZheLiShiFuHeOutput
{
    public string Id { get; set; }
    /// <summary>
    /// 姓名
    /// </summary>
    public string xingMing { get; set; }
    /// <summary>
    /// 患者id
    /// </summary>
    public string huanZheId { get; set; }
    /// <summary>
    /// "初筛ABO"
    /// </summary>
    public string chuShaiABO { get; set; }

    /// <summary>
    /// "初筛RhD"
    /// </summary>
    public string chuShaiRhD { get; set; }

    /// <summary>
    /// "性别"
    /// </summary>
    public string xingBie { get; set; }

    /// <summary>
    /// "年龄"
    /// </summary>
    public string nianLing { get; set; }
    /// <summary>
    /// 病区
    /// </summary>
    public string bingQu {  get; set; }
    /// <summary>
    /// "床号"
    /// </summary>
    public string chuangHao { get; set; }
    /// <summary>
    /// 就诊类型
    /// </summary>
    public string jiuZhenLeiXing { get; set; }
    // "复核人Id"
    public long? fuHeRenId { get; set; }

    // "检验人Id"
    public long? jianYanRenId { get; set; }

    /// <summary>
    /// "检验时间"
    /// </summary>
    public DateTime? jianYanShiJian { get; set; }

    /// <summary>
    /// "ABO复核结果（枚举）"
    /// </summary>
    public string? aboFuHeJieGuo { get; set; }

    /// <summary>
    /// "RhD复核结果（枚举）"
    /// </summary>
    public string? rhDFuHeJieGuo { get; set; }

    /// <summary>
    /// "抗筛结果（枚举）"
    /// </summary>
    public string? kangShaiJieGuo { get; set; }
}

public class HuanZheLiShiFaXueOutput
{
    /// <summary>
    /// 申请单id
    /// </summary>
    public string yongXueId { get; set; }
    /// <summary>
    /// 姓名
    /// </summary>
    public string xingMing { get; set; }
    /// <summary>
    /// 患者id
    /// </summary>
    public string huanZheId { get; set; }
    /// <summary>
    /// "初筛ABO"
    /// </summary>
    public string chuShaiABO { get; set; }

    /// <summary>
    /// "初筛RhD"
    /// </summary>
    public string chuShaiRhD { get; set; }

    /// <summary>
    /// "性别"
    /// </summary>
    public string xingBie { get; set; }

    /// <summary>
    /// "年龄"
    /// </summary>
    public string nianLing { get; set; }
    /// <summary>
    /// 病区
    /// </summary>
    public string bingQu { get; set; }
    /// <summary>
    /// "床号"
    /// </summary>
    public string chuangHao { get; set; }
    /// <summary>
    /// 就诊类型
    /// </summary>
    public string jiuZhenLeiXing { get; set; }
    /// <summary>
    /// 用血类型
    /// </summary>
    public string yongXueLeiXing { get; set; }
    /// <summary>
    /// 申请品种
    /// </summary>
    public long? shenQingPinZhong { get; set; }
    /// <summary>
    /// 申请量
    /// </summary>
    public decimal? shenQingLiang { get; set; }
    /// <summary>
    /// 申请ABO
    /// </summary>
    public string shenQingABO { get; set; }
    /// <summary>
    /// 申请RhD
    /// </summary>
    public string shenQingRhD { get; set; }
    /// <summary>
    /// 发血单号
    /// </summary>
    public string faXueId { get; set; }
    /// <summary>
    /// 发血汇总（发血子表拼接）
    /// </summary>
    public string faXueHuiZong { get; set; }
    /// <summary>
    /// 发血单总发血量
    /// </summary>
    public decimal? faXueLiang { get; set; }
    /// <summary>
    /// 发血时间
    /// </summary>
    public DateTime? createTime { get; set; }
    /// <summary>
    /// 品种名称
    /// </summary>
    public string pinZhongMingCheng {  get; set; }
    /// <summary>
    /// 单位
    /// </summary>
    public string danWei { get; set; }

}

public class HuanZheLiShiPeiXueOutput
{
    /// <summary>
    /// 申请单id
    /// </summary>
    public string yongXueId { get; set; }
    /// <summary>
    /// 姓名
    /// </summary>
    public string xingMing { get; set; }
    /// <summary>
    /// 患者id
    /// </summary>
    public string huanZheId { get; set; }
    /// <summary>
    /// "初筛ABO"
    /// </summary>
    public string chuShaiABO { get; set; }

    /// <summary>
    /// "初筛RhD"
    /// </summary>
    public string chuShaiRhD { get; set; }

    /// <summary>
    /// "性别"
    /// </summary>
    public string xingBie { get; set; }

    /// <summary>
    /// "年龄"
    /// </summary>
    public string nianLing { get; set; }
    /// <summary>
    /// 病区
    /// </summary>
    public string bingQu { get; set; }
    /// <summary>
    /// "床号"
    /// </summary>
    public string chuangHao { get; set; }
    /// <summary>
    /// 就诊类型
    /// </summary>
    public string jiuZhenLeiXing { get; set; }
    /// <summary>
    /// 用血类型
    /// </summary>
    public string yongXueLeiXing { get; set; }
    /// <summary>
    /// 申请品种
    /// </summary>
    public long? shenQingPinZhong { get; set; }
    /// <summary>
    /// 申请量
    /// </summary>
    public decimal? shenQingLiang { get; set; }
    /// <summary>
    /// 申请ABO
    /// </summary>
    public string shenQingABO { get; set; }
    /// <summary>
    /// 申请RhD
    /// </summary>
    public string shenQingRhD { get; set; }
    /// <summary>
    /// 配血单号
    /// </summary>
    public string traPeiXueId { get; set; }
    /// <summary>
    /// 配血明细汇总
    /// </summary>
    public string peiXueMingXiHuiZong { get; set; }
    /// <summary>
    /// 配血时间
    /// </summary>
    public string createTime { get; set; }
}